<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function sum(a, b){
            return a + b;
        }
        var result = sum(3,5);
        console.log("result = " + result);

        var add = function(a, b){
            return a + b;
        }
        var result = add(2,4);
        console.log("result = " + result)
    </script>
</head>
<body>
    
</body>
</html>